package com.classic.duanzhi;

import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.TextView;

import com.classic.base.BaseActivity;

public class UShardActivity extends BaseActivity {

    public static void starThis(FragmentActivity activity, DZDataBen1 o) {
        Intent intent = new Intent(activity, UShardActivity.class);
        intent.putExtra("DATA", o);
        activity.startActivity(intent);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_ushard;
    }

    @Override
    protected void initView() {
        TextView tv_text_title = findViewById(R.id.tv_text_title);
        TextView tv_text_SubTitle = findViewById(R.id.tv_text_SubTitle);
        tv_text_title.setText(data.getTitle());
        tv_text_SubTitle.setText(data.getContent());
    }

    @Override
    protected void initData() {

    }

    DZDataBen1 data;

    @Override
    public String getActivityTitle() {
        data = (DZDataBen1) getIntent().getSerializableExtra("DATA");
        return "";
    }
}
